<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>
<c:import url="../_frag/pager/pagerForm.jsp"></c:import>
<form method="get" rel="pagerForm" action="<c:url value='/management/article/show/${channelId}'/>" onsubmit="return navTabSearch(this)">
	<div class="pageHeader">
	<div class="searchBar">
		<ul class="searchContent" >
			
			</ul>
		<div class="subBar">
			<span style="margin-left: 5px; line-height: 25px; float: left">搜索结果: <strong>${vo.totalCount}</strong></span>
			<ul>						
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查找</button></div></div></li>
			</ul>
		</div>
	</div></div>
	</form>


<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" target="navTab" rel="articleAddNav" href="<c:url value='/management/article/add/${channelId}'/>" title="新增稿件"><span>写稿</span></a></li>
			<li><a class="edit" target="navTab" rel="newsNav" href="<c:url value='/management/article/edit/${channelId}/{slt_articleId}'/>" title="稿件修改"><span>改稿</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/management/article/firsttop/${channelId}/{slt_articleId}'/>" title="确定将所选稿件置顶吗?"><span>置顶</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/management/article/delete/{slt_articleId}'/>" title="提示:所选稿件将从所有相关频道中删除或撤销,确定继续执行吗?"><span>删稿</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/management/article/publish'/>" title="确定发布选择的稿件吗?"><span>发布</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" target="navTab" rel="articleNav" href="<c:url value='/management/article/view/{slt_articleId}'/>" title="稿件查看"><span>查看</span></a></li>
			<li><a class="delete" target="ajaxTodo" href="<c:url value='/management/article/unfirsttop/${channelId}/{slt_articleId}'/>" title="确定将所选稿件取消置顶吗?"><span>取消置顶</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="60px">序号</th>
				<th width="60px">置顶</th>
				<th width="80px">状态</th>
				<th width="800px">标题</th>
				<th width="100px">作者</th>
				<th width="50px">来源</th>
				<th width="70px">关键字</th>
				<th width="120px">创建时间</th>
				<th width="120px">过期时间</th>
				<th width="120px">修改时间</th>
				<th width="80px">修改人</th>
				<th width="120px">发布时间</th>
				<th width="80px">发布人</th>	
			</tr>
		</thead>
		<tbody>
		<c:forEach var="item" items="${articleList}" varStatus="s">
			<tr target="slt_articleId" rel="${item.code }">
				<td>${s.count+(pages.pageNo-1)*pages.pageSize}</td>
				<td>
					<c:choose>
						<c:when test="${item.channelTop== 0}">非置顶</c:when>
						<c:when test="${item.channelTop== 1}">置顶</c:when>
					</c:choose>
				</td>
				
				<td>
					<c:choose>
						<c:when test="${item.state== 0}">草稿</c:when>
						<c:when test="${item.state== 1}">审核失败</c:when>
						<c:when test="${item.state== 2}">待审核</c:when>
						<c:when test="${item.state== 3}">待发布</c:when>
						<c:when test="${item.state==4}">已发布</c:when>
						<c:when test="${item.state== 5}">已撤销</c:when>
					</c:choose>
				</td>
				<td>${item.title}</td>
				<td>
					<c:choose>
						<c:when test="${item.authorid== 1}">超级管理员</c:when>
						<c:when test="${item.authorid== 2}">教育考试院</c:when>
						<c:when test="${item.authorid== 9}">高中留言管理员</c:when>
						<c:when test="${item.authorid== 10}">高考留言管理员</c:when>
						<c:when test="${item.authorid==11}">研究生留言管理员</c:when>
						<c:when test="${item.authorid== 12}">自考留言管理员</c:when>
						<c:when test="${item.authorid== 13}">成考留言管理员</c:when>
						<c:when test="${item.authorid== 14}">高考答疑员5</c:when>
						<c:when test="${item.authorid== 15}">自考管理员</c:when>
						<c:when test="${item.authorid==16}">高考答疑员1</c:when>
						<c:when test="${item.authorid== 17}">高考答疑员2</c:when>
						<c:when test="${item.authorid==18}">高考答疑员3</c:when>
						<c:when test="${item.authorid== 19}">高考答疑员4</c:when>
						<c:when test="${item.authorid==20}">高考答疑员5</c:when>
						<c:when test="${item.authorid== 21}">高考答疑员6</c:when>
						<c:when test="${item.authorid== 22}">高招咨询管理员</c:when>
						<c:when test="${item.authorid== 25}">对口单招答疑员1</c:when>
						<c:when test="${item.authorid== 26}">对口单招答疑员2</c:when>
						<c:when test="${item.authorid== 27}">研究生答疑员1</c:when>
						<c:when test="${item.authorid==28}">研究生答疑员2</c:when>
						<c:when test="${item.authorid== 29}">自考答疑员1</c:when>
						<c:when test="${item.authorid==30}">自考答疑员2</c:when>
						<c:when test="${item.authorid== 33}">学测留言管理1</c:when>
						<c:when test="${item.authorid== 34}">学测留言管理2</c:when>
						<c:when test="${item.authorid==35}">专转本答疑员</c:when>
						<c:when test="${item.authorid== 36}">咨询信箱</c:when>
						<c:when test="${item.authorid== 37}">招考科研管理员</c:when>
					</c:choose></td>
				<td>${item.source}</td>
				<td>${item.keyword}</td>
				<td><fmt:formatDate value="${item.createtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><fmt:formatDate value="${item.expiretime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><fmt:formatDate value="${item.lastmodifytime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td>
				<c:choose>
						<c:when test="${item.lastmoduserid== 0}">超级管理员</c:when>
						<c:when test="${item.lastmoduserid== 2}">教育考试院</c:when>
						<c:when test="${item.lastmoduserid== 9}">高中留言管理员</c:when>
						<c:when test="${item.lastmoduserid== 10}">高考留言管理员</c:when>
						<c:when test="${item.lastmoduserid==11}">研究生留言管理员</c:when>
						<c:when test="${item.lastmoduserid== 12}">自考留言管理员</c:when>
						<c:when test="${item.lastmoduserid== 13}">成考留言管理员</c:when>
						<c:when test="${item.lastmoduserid== 14}">高考答疑员5</c:when>
						<c:when test="${item.lastmoduserid== 15}">自考管理员</c:when>
						<c:when test="${item.lastmoduserid==16}">高考答疑员1</c:when>
						<c:when test="${item.lastmoduserid== 17}">高考答疑员2</c:when>
						<c:when test="${item.lastmoduserid==18}">高考答疑员3</c:when>
						<c:when test="${item.lastmoduserid== 19}">高考答疑员4</c:when>
						<c:when test="${item.lastmoduserid==20}">高考答疑员5</c:when>
						<c:when test="${item.lastmoduserid== 21}">高考答疑员6</c:when>
						<c:when test="${item.lastmoduserid== 22}">高招咨询管理员</c:when>
						<c:when test="${item.lastmoduserid== 25}">对口单招答疑员1</c:when>
						<c:when test="${item.lastmoduserid== 26}">对口单招答疑员2</c:when>
						<c:when test="${item.lastmoduserid== 27}">研究生答疑员1</c:when>
						<c:when test="${item.lastmoduserid==28}">研究生答疑员2</c:when>
						<c:when test="${item.lastmoduserid== 29}">自考答疑员1</c:when>
						<c:when test="${item.lastmoduserid==30}">自考答疑员2</c:when>
						<c:when test="${item.lastmoduserid== 33}">学测留言管理1</c:when>
						<c:when test="${item.lastmoduserid== 34}">学测留言管理2</c:when>
						<c:when test="${item.lastmoduserid==35}">专转本答疑员</c:when>
						<c:when test="${item.lastmoduserid== 36}">咨询信箱</c:when>
						<c:when test="${item.lastmoduserid== 37}">招考科研管理员</c:when>
					</c:choose></td>
				<td><fmt:formatDate value="${item.publishtime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td>${item.publisherid}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>

	<c:import url="../_frag/pager/panelBar.jsp"></c:import>
</div>  